package pers.vic.rpc.registry.model;

import java.io.Serializable;

/**
 * 描述:服务地址
 * @author Vic.xu
 * @date 2022-02-10 15:50
 */
public class RpcUrl implements Serializable {

    private static final long serialVersionUID = 4806309034450873403L;
    /**
     * 服务名称
     */
    private String serverName;

    /**
     * 服务地址
     */
    private String address;

    /**
     * 服务端口
     */
    private Integer port;

    public RpcUrl() {
    }

    public RpcUrl(String serverName, String address, Integer port) {
        this.serverName = serverName;
        this.address = address;
        this.port = port;
    }

    @Override
    public String toString() {
        return "RpcUrl{" +
                "serverName='" + serverName + '\'' +
                ", address='" + address + '\'' +
                ", port=" + port +
                '}';
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
